import './nav.css';
import {getData, getDelayedData} from '../../../../api/getData';
import render from './nav.art';
import {LAYOUT_ID, URL} from './config';

getDelayedData(URL)
	.then(data => {
		console.log(data);
		document.getElementById(LAYOUT_ID).innerHTML = render({
			items: data,
		})
	});
